//
//  NSBundle+HECore.m
//  HealthFamily
//
//  Created by 吴欧 on 2021/2/10.
//  Copyright © 2021 honglutec. All rights reserved.
//

#import "NSBundle+HECore.h"

@implementation NSBundle (HECore)

+ (NSString *)wo_bundlePathForBundleName:(NSString *)bundleName class:(Class)aClass {
    NSString *pathComponent = [NSString stringWithFormat:@"%@.bundle", bundleName];
    NSString *bundlePath =[[[NSBundle bundleForClass:aClass] resourcePath] stringByAppendingPathComponent:pathComponent];
    return bundlePath;
}

+ (NSBundle *)wo_bundleForName:(NSString *)bundleName class:(Class)aClass {
    NSString *bundlePath = [NSBundle wo_bundlePathForBundleName:bundleName class:aClass];
    NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
    return bundle;
}

@end
